package com.insurance.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Arrays;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: 朱雄
 * Date: 2020/10/28 16:49
 * Description:
 * Version: V1.0
 */
@ApiModel("添加管理员用户及权限")
public class UserPermissions {
    /**
     * 用户主键
     */
    private Integer user_id;
    /**
     * 用户密码
     */
    @ApiModelProperty(name = "userPwd",notes = "用户密码" , dataType = "String",required = false)
    private String userPwd;
    /**
     * 用户名
     */
    @ApiModelProperty(name = "userName",notes = "用户名称" , dataType = "String",required = true)
    private String userName;
    /**
     * 用户电话
     */
    @ApiModelProperty(name = "userPhone",notes = "用户电话号码" , dataType = "String",required = false)
    private String userPhone;
    /**
     * 状态1表示正常使用，0表示停用
     */
    @ApiModelProperty(name = "userStatus",notes = "用户状态" , dataType = "int",required = false)
    private Integer userStatus;
    /**
     * 最近登录时间
     */
    @ApiModelProperty(name = "userLastTime",notes = "用户最近登录时间" , dataType = "Date",required = false)
    private Date userLastTime;

    /**
     * 用户邮箱
     */
    @ApiModelProperty(name = "userEmail",notes = "用户邮箱" , dataType = "String",required = false)
    private String userEmail;
    /**
     * 用户拥有的权限
     */
    @ApiModelProperty(name = "permissions",notes = "用户拥有的权限" ,required = false)
    private int[] permissions;

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public Date getUserLastTime() {
        return userLastTime;
    }

    public void setUserLastTime(Date userLastTime) {
        this.userLastTime = userLastTime;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public int[] getPermissions() {
        return permissions;
    }

    public void setPermissions(int[] permissions) {
        this.permissions = permissions;
    }

    @Override
    public String toString() {
        return "UserPermissions{" +
                "user_id=" + user_id +
                ", userPwd='" + userPwd + '\'' +
                ", userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userStatus=" + userStatus +
                ", userLastTime=" + userLastTime +
                ", userEmail='" + userEmail + '\'' +
                ", permissions=" + Arrays.toString(permissions) +
                '}';
    }
}
